import App from './App'
import http from "@/api/http";
import store from './store';
import tools from './utils/tools.js'
import uView from '@/uni_modules/uview-ui'
import utils from '@/utils/util.js'
import {uploadFile} from '@/utils/upload.js'
let mpShare = require('@/utils/shareMixin.js');
Vue.mixin(mpShare)
Vue.prototype.$http = http;
Vue.prototype.$tools = tools;
Vue.prototype.$store = store;
Vue.prototype.$up = uploadFile


for(let i in utils){
	Vue.prototype['$'+i] = utils[i]
}
Vue.use(uView);
import vuexMixin from './store/mixin.js';
Vue.mixin(vuexMixin);
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif